<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <link rel="stylesheet" href="/assets/amazeui/css/amazeui.min.css"/>

</head>
<body>
<div class="am-g am-margin-top">
    <div class="am-u-sm-12">
        <button class="am-btn am-btn-secondary am-radius am-btn-sm">数据导出</button>
    </div>
    <div class="am-u-sm-12">
        <div id="main" style="width: 100%;height: 500px;"></div>
    </div>
</div>
<div class="am-g am-margin-top">

</div>


<script src="/assets/iziModal/js/jquery-2.2.4.js"></script>
<script src="/assets/echarts/echarts.min.js"></script>
<script>

    $(function () {
        chart1();
    });

    function chart1() {
        alert("abc")
        var myChart = echarts.init(document.getElementById('main'));
        // 指定图表的配置项和数据
        var option = {
            title: {
                text: ''
            },
            tooltip: {},
            legend: {
                data:['终端维修','终端替换',"中继维修","中继替换"]
            },
            xAxis: {
                data: ["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]
            },
            yAxis: {},
            series: [
                {
                    name: '终端维修',
                    type: 'line',
                    data: [5, 20, 36, 10, 10, 20, 5, 20, 36, 10, 10, 20]
                },
                {
                    name: '终端替换',
                    type: 'bar',
                    data: [5, 0, 20, 6, 15, 8, 3, 6, 11, 0, 18, 10]
                },
                {
                    name: '中继维修',
                    type: 'line',
                    data: [2, 3, 6, 2, 11, 3, 6, 11, 8, 13, 4, 11]
                },
                {
                    name: '中继替换',
                    type: 'bar',
                    data: [7, 6, 10, 20, 2, 11, 15, 18, 30, 10, 12, 16]
                }
            ]
        };

        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
    }

</script>
</body>
</html>